<?php

class myUser extends sfGuardSecurityUser
{

  public function getTrader()
  {
    return $this->getGuardUser()->getTrader();
  }

  public function isSameAs($trader)
  {
    return ($this->getGuardUser()->getId() == $trader->getUserId()) ? true : false;
  }

}
